package cn.ymatrix.utils;

import java.sql.Timestamp;
import java.util.concurrent.ThreadLocalRandom;

public class DataUtil {

  private static final ThreadLocalRandom threadLocalRandom = ThreadLocalRandom.current();

  public static Timestamp getCurrentTimestamp() {
    return new Timestamp(System.currentTimeMillis());
  }

  public static int getIntValue() {
    return threadLocalRandom.nextInt(10);
  }

  public static float getFloatValue() {
    return threadLocalRandom.nextFloat();
  }

  public static long getLongValue() {
    return threadLocalRandom.nextLong();
  }

  public static double getDoubleValue() {
    return threadLocalRandom.nextDouble();
  }

  public static String getColumnStr(int ColumnLength) {
    for (int i = 0; i < ColumnLength; i++) {}
    return "";
  }
}
